Reduced natural request padding for rotating ellipsizing labels
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Tue, 20 Apr 2010 01:50:55 +0000 (21:50 -0400)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Tue, 20 Apr 2010 01:50:55 +0000 (21:50 -0400)
After fixing height requests this works much smoother, although in
some places pango seems to ellipsize a rotated label when given
the width it requested.

gtk/gtklabel.c

index 0e292207b39f6971c6af9243ee0498c0da488e2b..ff210feb92fa24ac3472281e6a4e42ce25b3ff21 100644 (file)
@@ -156,7 +156,7 @@ enum {
 /* When rotating ellipsizable text we want the natural size to request 
  * more to ensure the label wont ever ellipsize in an allocation of full natural size.
  * */
-#define ROTATION_ELLIPSIZE_PADDING 12
+#define ROTATION_ELLIPSIZE_PADDING 2
 
 static guint signals[LAST_SIGNAL] = { 0 };